package com.tan.hellojni;

/**
 * Created by Administrator on 2019/2/13 0013.
 */

public class HelloWorld {

    static {
        try {
            System.loadLibrary("helloworld");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private volatile static HelloWorld instance;

    private HelloWorld() {
    }

    public static HelloWorld getInstance() {
        if (instance == null) {
            synchronized (HelloWorld.class) {
                if (instance == null) {
                    instance = new HelloWorld();
                }
            }
        }
        return instance;
    }

    public native String nativeGetString();

}
